{extend name="apps/common/view/front.tpl" /}
<!-- -->
{block name="header_meta"}
<title>图床解析API接口－{:config('common.site_name')}</title>
<meta name="keywords" content="图床解析接口，图床解析API" />
<meta name="description" content="通过API解析接口以JSON格式返回加密后的{:config('tuchuang.site_name')}解析入口地址，支持自定义加密函数与解密函数。"  />
{/block}
{block name="header"}{include file="widget/header" /}{/block}
<!--main -->
{block name="main"}
<div class="container pt-2">
  <ol class="breadcrumb mb-2">
    <li class="breadcrumb-item"><a href="{:DcUrl('tuchuang/index/index')}">首页</a></li>
    <li class="breadcrumb-item active">{:config('tuchuang.site_name')}API解析接口</li>
  </ol>
  <div class="card mb-3">
    <div class="card-body">
      <ul class="list-unstyled mb-0">
        <li class="mb-3">请求协议：http/https</li>
        <li class="mb-3">请求方式：get/post</li>
        <li class="mb-3">返回类型：json</li>
        <li class="mb-3">接口权限：<a href="{:DcUrl('user/group/index')}">我要申请</a></li>
        <li class="mb-3">请求接口：{:DcUrl('tuchuang/apis/parse')}</li>
        <li class="mb-3">请求示例：{:DcUrl('tuchuang/apis/parse',['token'=>DcEmpty($user['user_token'],'登录获取'),'url'=>'https://cdn.daicuo.cc/images/daicuo/logo.png'])}</li>
        <li>接口描述：{:config('tuchuang.site_name')}API解析接口返回加密破解后的图片分享地址，此地址可直接用于IMG标签、支持自定义加密函数与解密函数。</li>
      </ul>
    </div>
  </div>
  <div class="table-responsive mb-3">
    <table class="table table-striped table-bordered mb-0">
      <thead>
        <tr>
          <th>参数名</th>
          <th>类型</th>
          <th class="text-center">必填</th>
          <th>示例值</th>
          <th>描述</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>token</td>
          <td>string</td>
          <td class="text-center">是</td>
          <td>a25bbe798309ffeccf1c26e520528146</td>
          <td>API请求凭证，登录后免费获取。</td>
        </tr>
        <tr>
          <td>url</td>
          <td>string</td>
          <td class="text-center">是</td>
          <td>https://cdn.daicuo.cc/images/daicuo/logo.png</td>
          <td>需解析的第三方网站图片外链地址。</td>
        </tr>
      </tbody>
    </table>
  </div>
  <div class="card">
    <div class="card-header">响应示例</div>
    <div class="card-body">
      <pre class="mb-0" id="json">
      {:json_encode(['code'=>1,'msg'=>'ok','data'=>'http://image.daicuo.org/tuchuang/index/read?url=dUEeOirXtl34AYaAGRftu0yrutYPkJQRtn5LKRBd9ViMbjIJRdNrxeZmDaOyC5fFraGKVPYqEtS8i9%2FKwHvA4N0QuWIfSiFHeaOirllA4%2B0%3D'])}
      </pre>
    </div>
  </div>
</div>
{/block}
{block name="footer"}{include file="widget/footer" /}{/block}